<?php
class Iw_model extends MY_Model {
	public function __construct(){
		parent::__construct();	
		$this->setTableName('u_c_index_weight');
	}
	
	public function getIw($parentid){
		$r = $this->select("name,score","parentid={$parentid}");
		return $r;
	}
	
	public function getStudentIw(){
		return $this->getIw(1);
	}
	
	public function getDepartmentIw(){
		return $this->getIw(2);
	}
}

?>